package com.example.lib;

public class ReadHeadDuck extends Duck{
    public void display(){
        System.out.println("我是红头鸭");
    }

    ReadHeadDuck(){
        flyBehavior = new FlyBehavior() {
            @Override
            public void fly() {

            }
        };

    }
}
